package org.lvhengchang.schoolmanager.service;

import java.util.List;

import org.lvhengchang.schoolmanager.bean.Student;

public interface StudentService {
	/**
	 * 获取所有用户信息
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<Student> selectByAll() throws Exception;

	/**
	 * 根据用户ID查询用户信息
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Student selectById(String student_id) throws Exception;

	/**
	 * 保存用户信息
	 * 
	 * @param student
	 * @return
	 * @throws Exception
	 */
	public int saveStudent(Student student) throws Exception;

	/**
	 * 修改用户信息
	 * 
	 * @param student
	 * @return
	 * @throws Exception
	 */
	public int updateStudent(Student student) throws Exception;

	/**
	 * 删除用户信息
	 * 
	 * @param student_id
	 * @return
	 * @throws Exception
	 */
	public int deleteStudent(String student_id) throws Exception;

	/**
	 * 登录
	 * 
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public Student loginStudent(String username, String password) throws Exception;

}
